package com.lzx.activity.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 *
 * </p>
 *
 * @author lzx
 * @since 2022-10-31
 */
@Getter
@Setter
@ApiModel(value = "Activity对象", description = "")
public class Activity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "id")
    private Integer id;

    @ApiModelProperty("活动名称")
    @Excel(name = "活动名称", width = 20, needMerge = true)
    private String name;

    @ApiModelProperty("活动介绍")
    @Excel(name = "活动介绍", width = 20, needMerge = true)
    private String introduction;

    @ApiModelProperty("价格(单位:分)")
    @Excel(name = "价格(单位:分)")
    private Integer price;

    @ApiModelProperty("发布者")
    @Excel(name = "发布者", width = 20, needMerge = true)
    private String publisher;

    @ApiModelProperty("活动图片")
    private String image;

    @ApiModelProperty("开始时间")
    @Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp startTime;

    @ApiModelProperty("结束时间")
    @Excel(name = "结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp endTime;

    @ApiModelProperty("状态(0正常,1下线)")
    private Integer status;
}
